<!doctype html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head>
	<base th:href="@{/}">
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<meta http-equiv="pragma" content="no-cache" />
	<meta http-equiv="cache-control" content="no-cache" />
	<meta http-equiv="expires" content="0" />
	<th:block th:include ="commHeaderInclude::commHead"></th:block>
	<th:block th:include="commHeaderInclude::formPageComm"></th:block>
	<title>选择医保平台</title>
</head>

<body class="ht">
<th:block th:include="commHeaderInclude::loading"></th:block>
<div class="tabTitle"><span><i class="mdi mdi-menu-up"></i>医保结算信息</span></div>
<div class="content-wrapper">
	<div class="breadCrumb">
		<i class="mdi mdi-map-marker"></i>
		<span><span th:text="${session.mcpName}"></span><i class="mdi mdi-chevron-double-right"></i>信息管理<i class="mdi mdi-chevron-double-right"></i>医保结算信息</span>
	</div>
	<!--<div class="alert alert-warning"><i class=" mdi mdi-alert-circle"></i>平台支持查询医保定点机构所在地的医保结算信息；仅展示最近六个月的查询记录。</div>-->
	<form class="searchForm" id="searchForm" method="post">
		<div class="card mb-3">
			<div class="card-body">
				<h4 class="card-title">按条件查询医保结算信息</h4>
				<div class="module searchModule" th:object="${vo.dto}">
					<ul class="mb-3">
						<!--
                        <li><label>医保定点机构</label><input type="text" name="qorgName" th:value="*{qorgName}" placeholder="" /></li>
                        <li><label>查询原因</label><input type="text" name="reason" th:value="*{reason}" placeholder="" /></li>
                        <li><label>查询时间</label>
                            <input class="ht_dateInput" type="text" name="publishTimeBegin" th:value="*{publishTimeBegin}" placeholder="" data-options="endSelector:'[name=publishTimeEnd]'" />
                            <span class="ht_dateText d-inlineBlock">至</span>
                            <input class="ht_dateInput" type="text" name="publishTimeEnd" th:value="*{publishTimeEnd}" placeholder="" data-options="startSelector:'[name=publishTimeBegin]'"/>
                        </li>
                        -->
						<li>
							<label>结算日期</label>
							<div><input class="ht-dateInput" type="date" name="payNyBegin" th:value="*{payNyBegin}" placeholder="" data-options="endSelector:'[name=payNyEnd]'" /></div>
							<span class="ht_dateText d-inlineBlock">至</span>
							<div><input class="ht-dateInput" type="date" name="payNyEnd" th:value="*{payNyEnd}" placeholder="" data-options="startSelector:'[name=payNyBegin]'"/></div>
						</li>
						<li>
							<label>医疗类别</label>
							<select name="payYLLB">
								<option value="">全部</option>
								<option
										th:each="buss:${application.DictList.YLLBList}"
										th:selected="${buss.code eq vo.dto.payYLLB}"
										th:value="${buss.code}"
										th:text="${buss.text}"></option>
							</select>
						</li>
						<li style="width: 100%;">
							<label>险种</label>
							<select name="payXZLX">
								<option value="">全部</option>
								<option
										th:each="buss:${application.DictList.XZLXList}"
										th:selected="${buss.code eq vo.dto.payXZLX}"
										th:value="${buss.code}"
										th:text="${buss.text}"></option>
							</select>
						</li>

					</ul>
					<div class="searchBtnContainer">
						<input class="btn btn-primary" type="submit" id="search" value="查询">
						<input class="btn btn-clear" type="clear" role="ClearButton" value="清空">
					</div>
				</div>
			</div>
		</div>
	</form>
	<form class="listForm" id="listForm" method="post">
		<div class="card mb-3">
			<div class="card-body">
				<h4 class="card-title">
					<span>医保结算信息列表</span>
					<a th:href="@{|hos/payLog/updateAll|}" class="btn btn-primary" role="openFrameWindow">更新</a>
				</h4>
				<div class="module">
					<table cellpadding="0" cellspacing="0" class="hTable">
						<thead>
						<tr>
							<th>序号</th>
							<th>医疗机构名称</th>
							<th>医疗机构代码</th>
							<th>结算日期</th>
							<th>结算人次</th>
							<th>医疗类别</th>
							<th>险种</th>
							<th>总费用</th>
							<th>个人现金</th>
							<th>基金支付</th>
						</tr>
						</thead>
						<tbody>
						<tr th:each="li,item:${vo.page.list}">
							<td th:text="${item.index+vo.page.startRow}">1</td>
							<td th:text="${@util.fStr(li.targetOrgName)}"></td>
							<td th:text="${li.payIdno}"></td>
							<td th:text="${li.payNy}" class="time">结算日期</td>
							<td th:text="${li.payRc}"></td>
							<td th:text="${li.payYllbName}"></td>
							<td th:text="${li.payXzlxName}"></td>
							<td th:text="${#numbers.formatDecimal(li.payTotalfee,1,'COMMA',2,'POINT')}"></td>
							<td th:text="${#numbers.formatDecimal(li.payGrzf,1,'COMMA',2,'POINT')}"></td>
							<td th:text="${#numbers.formatDecimal(li.payJjzf,1,'COMMA',2,'POINT')}"></td>
						</tr>
						</tbody>
					</table>
					<div class="noneRecord" th:if="${vo.page.total==0}">暂无信息</div>
					<th:block th:include ="commHeaderInclude::pageInfoComm"></th:block>
				</div>
			</div>
		</div>
	</form>
</div>
</body>
<script>
    var page=new ListPage();
    page.init();
    //seajs.use("/mcp/bank/insuranceInfo/js/list");
</script>
</html>